import { createApp } from 'vue'
import { createPinia } from 'pinia'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import VueFullPage from 'vue-fullpage.js'
import Vue3CountryIntl from 'vue3-country-intl';
// 引入css
import 'vue3-country-intl/lib/vue3-country-intl.css'
// import 'fullpage.js/vendors/scrolloverflow' // 如果需要使用scrollOverflow选项，需要引入此文件
import 'fullpage.js/dist/fullpage.min.css' // 引入fullpage.js的样式文件
import './style.css'
import App from './App.vue'
import router from './router/index.ts'
const pinia = createPinia();
import boot from '@/boot'
// createApp(App).use(router).mount('#app')

async function bootstrap() {
    const app = createApp(App);
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
    }
    boot(app)
    app.component(Vue3CountryIntl.name, Vue3CountryIntl);
    app.use(router).use(VueFullPage).use(pinia).mount('#app');
}
  
bootstrap()
